﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Masters/AdminMasterPage.master" AutoEventWireup="true" CodeFile="EditOrder.aspx.cs" Inherits="Admin_EditOrder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Title" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="content-box"><!-- Start Content Box -->
				
		<div class="content-box-header">
					
			<h3>Cập nhật phiếu đặt hàng</h3>
					
			<ul class="content-box-tabs">
				<li><a href="#tab1" class="default-tab">Phiếu đặt hàng</a></li>                
			</ul>
					
			<div class="clear"></div>
					
		</div> <!-- End .content-box-header -->
				
<div class="content-box-content">


   
<input type="hidden" name="act" id="act" value="update" />
<!-- Start Tab Danh Sach-->

<div class="tab-content default-tab" id="tab1"> 
<!-- This is the target div. id must match the href of this div's tab -->
			
<!-- Start Notification -->
 <div id="NotificationMessage" runat="server"></div>
  
<!-- End Notification -->
						
	<table width="100%" align="center">							
		<thead>
		</thead>
						 
		<tfoot>
			<tr>
				<td>
					<div class="bulk-actions align-left">	                        				
                       <input type="submit" value="Cập nhật" class="button" runat="server" id="btnCapNhat"/>
                       <a href="OrderManager.aspx" class="button" >Trở lại danh sách phiếu đặt hàng</a>
					</div>
										 

<div class="clear"></div>
<!-- End Pagging -->
									
				</td>
			</tr>
		</tfoot>
						 
		<tbody>
         
			<tr>                				
                <td align="center" valign="top">
                    <table style="width:100%;" align="center">
                    <tbody style="border:none;">
                        <tr>
                            <td align="right" style="text-align: right">
                                Mã phiếu hàng:</td>
                            <td style="text-align: left">
                                <asp:Label ID="MaPhieuDatHangLabel" runat="server" Text="MaPhieuDatHang"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Ngày đặt hàng:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="NgayDatHangTextBox" runat="server" 
                                     Width="300px" />
                                <div class="error-msg"  id="ErrorNgayDatHangTextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Thành tiền:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="ThanhTienTextBox" runat="server" 
                                    Width="300px" />
                                <div class="error-msg" id="ErrorThanhTienTextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Phí vận chuyển:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="PhiVanChuyenTextBox" runat="server" Width="300px"></asp:TextBox>
                                <div class="error-msg" id="ErrorPhiVanChuyenTextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Khách hàng:</td>
                            <td style="text-align: left">
                                    <div class="error-msg" id="ErrorKhachHangTextBox" runat="server">
                                        <asp:DropDownList ID="KhachHangComboBox" runat="server" Width="300px">
                                        </asp:DropDownList>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Tình trạng:</td>
                            <td style="text-align: left">
                                <asp:DropDownList ID="TinhTrangComboBox" runat="server" Width="300px" 
                                    DataSourceID="LinqDataSource1" DataTextField="TenTinhTrang" 
                                    DataValueField="MaTinhTrang">
                                </asp:DropDownList>
                                     <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                                    ContextTypeName="NhaKinhDoanhDataContext" EntityTypeName="" 
                                    Select="new (MaTinhTrang, TenTinhTrang)" TableName="TTPhieuDatHangs">
                                </asp:LinqDataSource>
                                     <div class="error-msg" id="ErrorTinhTrangTextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Thành phố đến:</td>
                            <td style="text-align: left">
                                <div class="error-msg" id="ErrorThanhPhoDenTextBox" runat="server">
                                    <asp:DropDownList ID="ThanhPhoDenComboBox" runat="server" 
                                        ondatabound="ThanhPhoDenComboBox_DataBound" Width="300px">
                                    </asp:DropDownList>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Nhà vận chuyển:</td>
                            <td style="text-align: left">
                                <asp:DropDownList ID="NhaVanChuyenComboBox" runat="server" Width="300px" ondatabound="NhaVanChuyenComboBox_DataBound" 
                                    >
                                </asp:DropDownList>
                                <div class="error-msg" id="ErrorNhaVanChuyenTextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Ngày đi dự kiến:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="NgayDiDuKienTextBox" runat="server" 
                                   Width="300px" />
                                <div class="error-msg" id="ErrorNgayDiDuKienTextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Ngày đến dự kiến:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="NgayDenDuKienTextBox" runat="server" 
                                   Width="300px" />
                                <div class="error-msg" id="ErrorNgayDenDuKienTextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Liên kết theo dõi:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="LienKetTheoDoiTextBox" runat="server" 
                                   Width="300px" />
                                <div class="error-msg" id="ErrorLienKetTheoDoiTextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Địa chỉ giao hàng:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="DiaChiGiaoHangTextBox" runat="server" 
                                   Width="300px" />
                                <div class="error-msg" id="ErrorDiaChiGiaoHangTextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Địa chỉ giao hàng thứ 2:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="DiaChiGiaoHang2TextBox" runat="server" 
                                   Width="300px" />
                                <div class="error-msg" id="ErrorDiaChiGiaoHang2TextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Điện thoại di động:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="DienThoaiDiDongTextBox" runat="server" 
                                   Width="300px" />
                                <div class="error-msg" id="ErrorDienThoaiDiDongTextBox" runat="server"></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="text-align: right">
                                Điện thoại bàn:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="DienThoaiBanTextBox" runat="server" 
                                   Width="300px" />
                                <div class="error-msg" id="ErrorDienThoaiBanTextBox" runat="server"></div>
                            </td>
                        </tr>
                    </tbody>
                    </table>
                </td>
			</tr>							
			
		
		</tbody>							
	</table>						
</div>


<!-- End Tab Danh Sach-->					
  
   
					
</div> <!-- End .content-box-content -->
				
</div>
</asp:Content>








